package com.yzt.zhuju.widget.pickview.util;

import android.view.Gravity;

import com.yzt.zhuju.R;


/**
 * Created by Sai on 15/8/9.
 */
public class PickerViewAnimateUtil {

    private static final int INVALID = -1;

    public static int getAnimationResource(int gravity, boolean isInAnimation) {
        if (gravity == Gravity.BOTTOM) {
            return isInAnimation ? R.anim.pickerview_slide_in_bottom : R.anim.pickerview_slide_out_bottom;
        }
        return INVALID;
    }
}
